﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/SiteAdmin.Master" AutoEventWireup="true" CodeBehind="ht_ql_slide.aspx.cs" Inherits="Andy.Web.admin.ht_ql_slide" %>
<%@ Register TagPrefix="obout" Namespace="Vdc.Grid" Assembly="vdc_Grid_NET" %>
<%@ Register Assembly="vdc_AJAXPage" Namespace="VdcInc" TagPrefix="vajax" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript">
        function XoaSlide(id) {
            var answer = confirm("Bạn có chắc muốn xóa slide này ko ?")
            if (answer) {
                ob_post.AddParam('strSlideId', id);
                ob_post.post(null, "vXoaSlide", ResultXoaSlide);
            }
        }
        function ResultXoaSlide(result, ex) {
            alert(result);
            location.reload();
        }
    </script>

    <div id="page">
        <div class="inner">
            <div class="section table_section">
                <!--[if !IE]>start title wrapper<![endif]-->
                <div class="title_wrapper">
                    <h2>Danh sách slide</h2>
                    <ul class="section_menu">
                        <li><a class="active" href="#"><span><span>Quản lý slide</span></span></a></li>
                        <li><a href="ht_them_slide.aspx">
                            <span><span>Thêm mới slide</span></span></a></li>
                    </ul>
                    <span class="title_wrapper_left"></span><span class="title_wrapper_right"></span>
                </div>
                <!--[if !IE]>end title wrapper<![endif]-->
                <!--[if !IE]>start section content<![endif]-->
                <div class="section_content">
                    <!--[if !IE]>start section content top<![endif]-->
                    <div class="sct">
                        <div class="sct_left">
                            <div class="sct_right">
                                <div class="sct_left">
                                    <div class="sct_right">

                                        <fieldset>
                                            <!--[if !IE]>start table_wrapper<![endif]-->
                                            <div class="table_wrapper">
                                                <div class="table_wrapper_inner">

                                                </div>
                                            </div>
                                        </fieldset>

                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="grid">
                    <obout:Grid ID="grid1" runat="server" CallbackMode="false" Serialize="true" AllowAddingRecords="false" PageSize="-1"
                        FolderStyle="~/styles/premiere_blue" AutoGenerateColumns="false" AllowRecordSelection="false" AllowMultiRecordSelection="false" Width="100%"
                        ShowFooter="true" AllowSorting="false" AllowPaging="false" AllowPageSizeSelection="false">
                        <PagingSettings ShowRecordsCount="false" />
                        <Columns>
                            
                            <obout:Column ID="Column2" DataField="Id" HeaderText="ID" runat="server" Visible="false" />
                            <obout:Column ID="Column1" DataField="DuongDan" HeaderText="Ảnh" runat="server" Width="800px">
                                <TemplateSettings TemplateId="ImageSanPham" />
                                </obout:Column>
                            <obout:Column ID="Column3" DataField="ThuTu" HeaderText="Thứ tự" runat="server" />
                            <obout:Column HeaderText="">
                                <TemplateSettings TemplateId="Actions" />
                            </obout:Column>
                        </Columns>
                        <Templates>
                            <obout:GridTemplate runat="server" ID="ImageSanPham">
                                <Template>
                                        <img src="../<%# Container.DataItem["DuongDan"] %>" width="700" height="300" title="" alt="" />
                                    </Template>
                            </obout:GridTemplate>
                            <obout:GridTemplate runat="server" ID="Actions">
                                <Template>
                                    <a href="#null" onclick="alert(<%# Container.DataItem["Id"] %>);" class=""><img src="a_files/layout/site/tables/edit_action.gif" /></a>
                                    <a href="#null" onclick="XoaSlide(<%# Container.DataItem["Id"] %>);" class=""><img src="a_files/layout/site/tables/action4.gif" /></a>
                                   </Template>
                                </obout:GridTemplate>
                        </Templates>
                    </obout:Grid>
                </div>
                <div class="section_content">
                    <!--[if !IE]>start section content top<![endif]-->
                    <div class="sct">
                        <div class="sct_left">
                            <div class="sct_right">
                                <div class="sct_left">
                                    <div class="sct_right">
                                        <fieldset>
                                            <!--[if !IE]>start table_wrapper<![endif]-->
                                            <div class="table_wrapper">
                                                <div class="table_wrapper_inner">
                                                    <div>
                                                        <table id="ctl00_ContentPlaceHolder1_ctl00_grvData" style="border-style: None; width: 100%; border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0">
                                                            <tbody>
                                                                <tr>
                                                                    <td colspan="8">
                                                                        <ul class="pagesht clearfix">
                                                                            <asp:Literal ID="ltlPhanTrang" runat="server"></asp:Literal>
                                                                        </ul>
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </div>
                                                </div>
                                            </div>
                                        </fieldset>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!--[if !IE]>end section content<![endif]-->
            </div>

        </div>

    </div>
</asp:Content>
